home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Data 1999 March / CD Rom Data Mart 1999.iso / Media / Intro.dxr / Internal_58_Go to Next Marker.ls < prev    next >
Encoding:
Text File  |  1999-02-16  |  824 b   |  37 lines

  1. property whichevent
  2.  
  3. on initGotoNextMarker me
  4.   init(me)
  5. end
  6.  
  7. on mouseUp me
  8.   if whichevent = #mouseUp then
  9.     init(me)
  10.   end if
  11. end
  12.  
  13. on prepareFrame me
  14.   if whichevent = #prepareFrame then
  15.     init(me)
  16.   end if
  17. end
  18.  
  19. on exitFrame me
  20.   if whichevent = #exitFrame then
  21.     init(me)
  22.   end if
  23. end
  24.  
  25. on init me
  26.   go(marker(1))
  27. end
  28.  
  29. on getPropertyDescriptionList
  30.   p_list = [#whichevent: [#comment: "Initializing Event:", #format: #symbol, #range: [#mouseUp, #prepareFrame, #exitFrame, #initGotoNextMarker], #default: #mouseUp]]
  31.   return p_list
  32. end
  33.  
  34. on getBehaviorDescription
  35.   return "Moves the Playback Head to the next marker when the specified event occurs.  Drag to a sprite or a frame in the script channel." && RETURN & "PARAMETERS:" && RETURN & "ΓÇó Initializing Event - Specify the event that triggers the behavior."
  36. end
  37.